package model.person;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the person database table.
 * 
 */
@Entity
@Table(name="person")
public class Person implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private PersonPK id;

	@Transient
	@Column(name="p_memo", length=200)
	private String pMemo;

	@Column(name="p_name", length=45)
	private String pName;

	@Transient
	@Lob
	@Basic(fetch=FetchType.LAZY)
	@Column(name="p_pic")
	private Object pPic;

	@Enumerated(EnumType.ORDINAL)
	@Column(name="p_sex", length=2)
	private Sex pSex;

	public Person() {
	}

	public PersonPK getId() {
		return this.id;
	}

	public void setId(PersonPK id) {
		this.id = id;
	}

	public String getPMemo() {
		return this.pMemo;
	}

	public void setPMemo(String pMemo) {
		this.pMemo = pMemo;
	}

	public String getPName() {
		return this.pName;
	}

	public void setPName(String pName) {
		this.pName = pName;
	}

	public Object getPPic() {
		return this.pPic;
	}

	public void setPPic(Object pPic) {
		this.pPic = pPic;
	}

	public Sex getPSex() {
		return this.pSex;
	}

	public void setPSex(Sex pSex) {
		this.pSex = pSex;
	}

}